package com.yaj.mesif.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TiOrderDto")
public class TiOrderDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "製造オーダ番号",required = true)
    private String orderid;

    @ApiModelProperty(value = "製造オーダ摘要")
    private String description;

    @ApiModelProperty(value = "開始日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date scheduledstartdate;

    @ApiModelProperty(value = "完了日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date scheduledcompletiondate;

    @ApiModelProperty(value = "オーダ数量")
    private BigDecimal startquantity;

    @ApiModelProperty(value = "完了済み数量")
    private BigDecimal completedquantity;

    @ApiModelProperty(value = "廃棄数量")
    private BigDecimal scrappedquantity;

    @ApiModelProperty(value = "かんばん番号")
    private String kanbanid;

    @ApiModelProperty(value = "完了保管場所コード")
    private String inventoryid;

    @ApiModelProperty(value = "組立品目コード")
    private String itemid;

    @ApiModelProperty(value = "単位コード")
    private String unitofmeasurecode;

    @ApiModelProperty(value = "棚番")
    private String locatornumber;

    @ApiModelProperty(value = "形式")
    private String form;

    @ApiModelProperty(value = "仕様")
    private String specification;

    @ApiModelProperty(value = "品目摘要詳細")
    private String detail;

    @ApiModelProperty(value = "CO伝票NO")
    private String coSlipNo;

    @ApiModelProperty(value = "改正符号")
    private String revisionsign;

    @ApiModelProperty(value = "ロット番号")
    private String lotnumbercode;

    @ApiModelProperty(value = "製造部署ID")
    private String mfgstid;

    @ApiModelProperty(value = "備考")
    @TableField("NOTES")
    private String notes;

    @ApiModelProperty(value = "レコード作成者ID")
    @TableField("CREATED_BY")
    private String createdBy;
}
